package com.atmilan.quartz.service;

import java.util.List;

import com.atmilan.quartz.model.dto.buyer.ProductSkuDTO;
import com.atmilan.quartz.model.entity.buyer.ProductSku;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 商品SKUService接口
 * 
 * @author muyu
 * @date 2020-09-07
 */
public interface IProductSkuService extends IService<ProductSku> {

    /**
     * 查询商品下SKU
     *
     * @param productId 产品ID
     * @return 商品SKU
     */
    public List<ProductSkuDTO> getProductSkuByProductId(Long productId);

    /**
     * 查询商品SKU
     * 
     * @param id 商品SKUID
     * @return 商品SKU
     */
    public ProductSkuDTO getProductSkuById(Long id);

    /**
     * 修改商品SKU
     * 
     * @param productSku 商品SKU
     * @return 结果
     */
    public boolean updateProductSku(ProductSkuDTO productSku);

}
